package com.qtummatrix.dao;

import com.qtummatrix.entity.*;

import java.util.List;

/**
 * create by Gongshiyong  2019-12-07 11:25
 */
public interface ILoansDao {
    /**
     * 贷款产品详细信息
     */
    public LoanproductsEntity particular(int id);

    /**
     * 我的贷款
     */
    public String login(String name, String UID);

    /**
     * 客户信息
     */
    public CustomerinfoEntity getMessage(String name, String UID);

    /**
     * 查询客户申请表
     */
    public String queryUser(ApplicationEntity applicationEntity);

    /**
     * 添加客户申请
     */
    public String addUser(ApplicationEntity applicationEntity);

    /**
     * 添加客户表
     */
    public void addInfos(CustomerinfoEntity customerinfoEntity);

    /**
     * 查询客户表
     */
    public String getInfos(CustomerinfoEntity customerinfoEntity);

    /**
     * 查询黑名单
     */
    public String getBlack(CustomerinfoEntity customerinfoEntity);

    /**
     * 查询黑名单
     */
    public String showUser(ApplicationEntity applicationEntity);

    /**
     * 贷款信息表
     */
    public ContractEntity showMessage(String username);

    /**
     * 查询调查问卷
     */
    public List<CustomeranswerEntity> questionnaire();

    /**
     * 查询模组id
     */
    public List<Integer> question();

    /**
     * 查询问题
     */
    public List<QuestionsEntity> getQuestr(List<Integer> list);

    /**
     * 查询分数
     */
    public int getGrode(String[] arr, List<Integer> list);

    /**
     * 查询信用评级
     */
    public String getRate(int sum);

    /**
     * 插入到客户表
     */
    public void addInfo(String role, String username);
}
